import { Column, Entity, PrimaryGeneratedColumn } from "typeorm"

/*
 * @Author: cl
 * @Description: 用户表
 * @Date: 2023-04-21 09:17:58
 * @LastEditTime: 2023-04-21 09:21:21
 * @FilePath: \jsnode\nestjs\naota\src\user\entities\user.entity.ts
 * @LastEditors: cl
 */
@Entity()
export class User {

    @PrimaryGeneratedColumn()
    id:number  
    
    @Column({ type: 'varchar', length: 200 })
    name:string
    
    @Column({ type: 'varchar', length: 200 })
    password:string

}
